" qwer keyboard layout
"
" u 是撤销，大写的U是反撤销，符合直觉
noremap U <C-r>

" 大写方向键回到句首，或者移动多行
noremap H ^
noremap L $
nnoremap J 10j
vnoremap J 3j
nnoremap K 10k
vnoremap K 3k

" noremap <A-e> <nop>

" Alt + shift + direction to jump cursor between windows
noremap <A-L> <C-w><Right>
noremap <A-H> <C-w><Left>
noremap <A-J> <C-w><Down>
noremap <A-K> <C-w><Up>

" Alt + direction to jump between tab
nnoremap <A-h> :-tabnext<CR>
nnoremap <A-l> :+tabnext<CR>

noremap <A-u> <nop>

" register yank and paste {{{
noremap <LEADER>pj "jp
noremap <LEADER>pk "kp
noremap <LEADER>pl "lp
vnoremap <LEADER>yj "jy
vnoremap <LEADER>yk "ky
vnoremap <LEADER>yl "ly
vnoremap  <Esc>
" }}}

" noremap! tna 1
" noremap! tnr 2
" noremap! tns 3
" noremap! tnt 4
" noremap! tnd 5
" noremap! tnh 6
" noremap! tnn 7
" noremap! tne 8
" noremap! tni 9
" noremap! tno 0

" noremap! tnA !
" noremap! tnR @
" noremap! tnS #
" noremap! tnT $
" noremap! tnD %
" noremap! tnH ^
" noremap! tnN &
" noremap! tnE *
" noremap! tnI (
" noremap! tnO )

" noremap! aoa !
" noremap! aor @
" noremap! aos #
" noremap! aot $
" noremap! aod %
" noremap! aoh ^
" noremap! aon &
" noremap! aoe *
" noremap! aoi (
" noremap! aoo )
" noremap! aoq ~

" noremap! tnl ()<left>
" noremap! tnu []<left>
" noremap! tny <end><space>{}<left>
" noremap! tnY {}<left>

" noremap! aol ()<left>
" noremap! aou []<left>
" noremap! aoy <end><space>{}<left>
" noremap! aoY {}<left>
